package com.hopu.blb_erp.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class TWarehouse {
//
  @TableId(type = IdType.AUTO)
  private Integer id;
  private String goodsNo;
  private String goodsName;
  private Integer wareId;
  private Integer shelvesNum;
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  private java.sql.Timestamp dateTime;
  private String area;
  private boolean status;
  private String describes;
  @TableField(exist = false)
  private List<TShelves> tShelves;
  @TableField(exist = false)
  private TMenu menu;
  @TableField(exist = false)
  private List<TShelves> children;
  @TableField(exist = false)
  private List<TIoWarehouse> tioWarehouses;
  @TableField(exist = false)
  private List<TIomWarehouse> tiomWarehouses;
  @TableField(exist = false)
  private List<TWarehouse> tWarehouses;


}
